package ooday02;

public class Teacher extends Person {
    String salary;

    Teacher(String name,int age,String address,String salary){
        super(name,age,address);
        this.salary = salary;
    }
    Teacher(){}
    void teach(){
        System.out.println(name+"正在讲课");
    }
}
